using System;

class Side{
    
    public Point p1 = new Point();
    public Point p2 = new Point();

    public Side(){}

    public Side(Point p1,Point p2) => (this.p1,this.p2) = (p1,p2);

    public float getK(){
        if (p1.x - p2.x == 0)
        {
            return 1;
        }
        float k = System.Math.Abs((p1.y - p2.y)/(p1.x - p2.x));
        return k;
    }
    public double getLen(){
        double len = System.Math.Sqrt((p1.y - p2.y)*(p1.y - p2.y) + (p1.x - p2.x)*(p1.x - p2.x));
        return len;
    }
}